package com.lecture.java8.geekbang.demo04;

import java.math.BigDecimal;

public class VirtualWalletController {

    private VirtualWalletService virtualWalletService;

    public BigDecimal getBalance(Long walletId) {
        //查询余额
        return null;
    }

    public void debit(Long walletId,BigDecimal amount) {
        //出账
    }

    public void credit(Long walletId,BigDecimal amount) {
        //入账
    }

    public void transfer(Long formWalletId,Long toWalletId,BigDecimal amount) {
        //转账
    }
}
